/*
 * Copyright 2010 Mark Eschbach.
 *
 * $HeadURL$
 * $Id$
 */
package com.meschbach.cise.dom;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
 *
 * @author "Mark Eschbach" &lt;meschbach@gmail.com&gt;
 */
public class RemovableNodeIterator<N extends Node> extends NodeIterator<N> {

    Node parent;

    public RemovableNodeIterator(NodeList nodes, Node parent) {
        super(nodes);
        this.parent = parent;
    }

    @Override
    public void remove() {
        parent.removeChild(getCurrent());
    }
}
